<div id="content" class="span12">
    <?php echo CHtml::link('&larr; go back', Yii::app()->user->returnUrl); ?>
    <?php
    $this->widget('zii.widgets.grid.CGridView', array(
        'dataProvider' => $dataProvider,
        'enableSorting' => false,
        'columns' => array(
            array(
                'name' => 'crop.variety',
                'header' => 'Crop Variety',
            ),
            array(
                'name' => 'amount',
                'header' => 'Price (in peso)',
            ),
            array(
                'name' => 'effective_date',
                'header' => 'Effective Date',
                'value' => 'Yii::app()->dateFormatter->format("MMM d, yyyy (EEEE)", $data->effective_date)',
            ),
            array(
                'name' => 'timestamp',
                'header' => 'Time of Submission',
                'value' => 'Yii::app()->dateFormatter->format("h:mm a - MMM d, yyyy (EEEE)", $data->timestamp)',
            )
        ),
        'cssFile' => false,
        'itemsCssClass' => 'table',
        'summaryCssClass' => 'pull-right',
    ));
    ?>
    <?php echo CHtml::link('&larr; go back', Yii::app()->user->returnUrl); ?>
</div>